using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Net;
using System.Text;
using System.Windows.Forms;
using 账号服务器.Properties;

namespace 账号服务器
{
	public class 主窗口 : Form
	{
		public static uint 新注册账号数;

		public static uint 生成门票总数;

		public static long 已接收字节数;

		public static long 已发送字节数;

		public static 主窗口 主界面;

		public static string 游戏区服 = "";

		public static string 数据目录 = ".\\Accounts";

		public static Dictionary<string, 账号数据> 账号数据;

		public static Dictionary<string, IPEndPoint> 区服数据;

		private IContainer components;

		private TabControl 主选项卡;

		private Button 启动服务按钮;

		private Button 停止服务按钮;

		private TabPage 日志选项卡;

		public RichTextBox 日志文本框;

		private Label 已注册账号;

		private Label 新注册账号;

		private Label 生成门票数;

		private Label 已发送字节;

		private Label 已接收字节;

		private Label 本地监听端口标签;

		private Label 门票发送端口标签;

		public NumericUpDown 本地监听端口;

		public NumericUpDown 门票发送端口;

		private NotifyIcon 最小化到托盘;

		private ContextMenuStrip 托盘右键菜单;

		private ToolStripMenuItem 打开ToolStripMenuItem;

		private ToolStripMenuItem 退出ToolStripMenuItem;

		private Button 打开配置按钮;

		private Button 查看账号按钮;

		private Button 加载配置按钮;

		private Button 加载账号按钮;

		public 主窗口()
		{
			this.InitializeComponent();
			主窗口.主界面 = this;
			this.本地监听端口.Value = Settings.Default.本地监听端口;
			this.门票发送端口.Value = Settings.Default.门票发送端口;
			if (!File.Exists(".\\server"))
			{
				this.日志文本框.AppendText("未找到服务器配置文件, 请注意配置\r\n");
			}
			if (!Directory.Exists(主窗口.数据目录))
			{
				this.日志文本框.AppendText("未找到账号配置文件夹, 请注意导入\r\n");
			}
		}

		public static void 更新已注册账号数()
		{
			主窗口.主界面?.BeginInvoke((MethodInvoker)delegate
			{
				主窗口.主界面.已注册账号.Text = $"已注册账号: {主窗口.账号数据.Count}";
			});
		}

		public static void 更新新注册账号数()
		{
			主窗口.更新已注册账号数();
			主窗口.主界面?.BeginInvoke((MethodInvoker)delegate
			{
				主窗口.主界面.新注册账号.Text = $"新注册账号: {主窗口.新注册账号数}";
			});
		}

		public static void 更新已生成门票数()
		{
			主窗口.主界面?.BeginInvoke((MethodInvoker)delegate
			{
				主窗口.主界面.生成门票数.Text = $"生成门票数: {主窗口.生成门票总数}";
			});
		}

		public static void 更新已接收字节数()
		{
			主窗口.主界面?.BeginInvoke((MethodInvoker)delegate
			{
				主窗口.主界面.已接收字节.Text = $"已接收字节: {主窗口.已接收字节数}";
			});
		}

		public static void 更新已发送字节数()
		{
			主窗口.主界面?.BeginInvoke((MethodInvoker)delegate
			{
				主窗口.主界面.已发送字节.Text = $"已发送字节: {主窗口.已发送字节数}";
			});
		}

		public static void 添加日志(string 内容)
		{
			主窗口.主界面?.BeginInvoke((MethodInvoker)delegate
			{
				主窗口.主界面.日志文本框.AppendText(内容 + "\r\n");
				主窗口.主界面.日志文本框.ScrollToCaret();
			});
		}

		public static void 添加账号(账号数据 账号)
		{
			if (!主窗口.账号数据.ContainsKey(账号.账号名字))
			{
				主窗口.保存账号(主窗口.账号数据[账号.账号名字] = 账号);
			}
		}

		public static void 保存账号(账号数据 账号)
		{
			File.WriteAllText(主窗口.数据目录 + "\\" + 账号.账号名字 + ".txt", 序列化类.序列化(账号));
		}

		private void 启动服务_Click(object sender, EventArgs e)
		{
			if (主窗口.区服数据 == null || 主窗口.区服数据.Count == 0)
			{
				this.加载配置按钮_Click(sender, e);
			}
			if (主窗口.区服数据 == null || 主窗口.区服数据.Count == 0)
			{
				主窗口.添加日志("服务器配置为空, 启动失败");
				return;
			}
			if (主窗口.账号数据 == null || 主窗口.账号数据.Count == 0)
			{
				this.加载账号按钮_Click(sender, e);
			}
			if (网络通信.启动服务())
			{
				this.停止服务按钮.Enabled = true;
				this.加载配置按钮.Enabled = (this.加载账号按钮.Enabled = false);
				this.启动服务按钮.Enabled = false;
				this.本地监听端口.Enabled = false;
				this.门票发送端口.Enabled = false;
				Settings.Default.本地监听端口 = (ushort)this.本地监听端口.Value;
				Settings.Default.门票发送端口 = (ushort)this.门票发送端口.Value;
				Settings.Default.Save();
			}
		}

		private void 停止服务_Click(object sender, EventArgs e)
		{
			网络通信.结束服务();
			this.停止服务按钮.Enabled = false;
			this.加载配置按钮.Enabled = (this.加载账号按钮.Enabled = true);
			this.启动服务按钮.Enabled = (this.本地监听端口.Enabled = (this.门票发送端口.Enabled = true));
		}

		private void 隐藏窗口_Click(object sender, FormClosingEventArgs e)
		{
			if (MessageBox.Show("确定关闭服务器?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
			{
				this.最小化到托盘.Visible = false;
				Environment.Exit(0);
				return;
			}
			this.最小化到托盘.Visible = true;
			base.Hide();
			if (e != null)
			{
				e.Cancel = true;
			}
			this.最小化到托盘.ShowBalloonTip(1000, "", "服务器已转为后台运行.", ToolTipIcon.Info);
		}

		private void 恢复窗口_Click(object sender, MouseEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				base.Visible = true;
				this.最小化到托盘.Visible = false;
			}
		}

		private void 恢复窗口_Click(object sender, EventArgs e)
		{
			base.Visible = true;
			this.最小化到托盘.Visible = false;
		}

		private void 结束进程_Click(object sender, EventArgs e)
		{
			if (MessageBox.Show("确定关闭服务器?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
			{
				网络通信.结束服务();
				this.最小化到托盘.Visible = false;
				Environment.Exit(0);
			}
		}

		private void 打开配置按钮_Click(object sender, EventArgs e)
		{
			if (!File.Exists(".\\server"))
			{
				主窗口.添加日志("配置文件不存在, 已自动创建");
				File.WriteAllBytes(".\\server", new byte[0]);
			}
			Process.Start("notepad.exe", ".\\server");
		}

		private void 加载配置按钮_Click(object sender, EventArgs e)
		{
			if (!File.Exists(".\\server"))
			{
				return;
			}
			主窗口.区服数据 = new Dictionary<string, IPEndPoint>();
			主窗口.游戏区服 = File.ReadAllText(".\\server", Encoding.Unicode).Trim('\r', '\n', ' ');
			string[] array;
			array = 主窗口.游戏区服.Split(new char[2] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
			foreach (string text in array)
			{
				string[] array2;
				array2 = text.Split(new char[2] { ',', '/' }, StringSplitOptions.RemoveEmptyEntries);
				if (array2.Length != 3)
				{
					MessageBox.Show("server 配置错误, 解析失败的行: " + text);
					Environment.Exit(0);
				}
				主窗口.区服数据.Add(array2[2], new IPEndPoint(IPAddress.Parse(array2[0]), Convert.ToInt32(array2[1])));
			}
			主窗口.添加日志("网络配置已加载, 当前配置单\r\n" + 主窗口.游戏区服);
		}

		private void 查看账号按钮_Click(object sender, EventArgs e)
		{
			if (!Directory.Exists(主窗口.数据目录))
			{
				主窗口.添加日志("账号目录不存在, 已自动创建");
				Directory.CreateDirectory(主窗口.数据目录);
			}
			else
			{
				Process.Start("explorer.exe", 主窗口.数据目录);
			}
		}

		private void 加载账号按钮_Click(object sender, EventArgs e)
		{
			主窗口.账号数据 = new Dictionary<string, 账号数据>();
			if (!Directory.Exists(主窗口.数据目录))
			{
				主窗口.添加日志("账号目录不存在, 已自动创建");
				Directory.CreateDirectory(主窗口.数据目录);
				return;
			}
			object[] array;
			array = 序列化类.反序列化(主窗口.数据目录, typeof(账号数据));
			for (int i = 0; i < array.Length; i++)
			{
				if (array[i] is 账号数据 账号数据2)
				{
					主窗口.账号数据[账号数据2.账号名字] = 账号数据2;
				}
			}
			主窗口.添加日志($"账号数据已加载, 当前账号数: {主窗口.账号数据.Count}");
			this.已注册账号.Text = $"已注册账号: {主窗口.账号数据.Count}";
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources;
			resources = new System.ComponentModel.ComponentResourceManager(typeof(账号服务器.主窗口));
			this.主选项卡 = new System.Windows.Forms.TabControl();
			this.日志选项卡 = new System.Windows.Forms.TabPage();
			this.日志文本框 = new System.Windows.Forms.RichTextBox();
			this.启动服务按钮 = new System.Windows.Forms.Button();
			this.停止服务按钮 = new System.Windows.Forms.Button();
			this.已注册账号 = new System.Windows.Forms.Label();
			this.新注册账号 = new System.Windows.Forms.Label();
			this.生成门票数 = new System.Windows.Forms.Label();
			this.已发送字节 = new System.Windows.Forms.Label();
			this.已接收字节 = new System.Windows.Forms.Label();
			this.本地监听端口 = new System.Windows.Forms.NumericUpDown();
			this.本地监听端口标签 = new System.Windows.Forms.Label();
			this.门票发送端口标签 = new System.Windows.Forms.Label();
			this.门票发送端口 = new System.Windows.Forms.NumericUpDown();
			this.最小化到托盘 = new System.Windows.Forms.NotifyIcon(this.components);
			this.托盘右键菜单 = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.打开ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.退出ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.打开配置按钮 = new System.Windows.Forms.Button();
			this.查看账号按钮 = new System.Windows.Forms.Button();
			this.加载配置按钮 = new System.Windows.Forms.Button();
			this.加载账号按钮 = new System.Windows.Forms.Button();
			this.主选项卡.SuspendLayout();
			this.日志选项卡.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.本地监听端口).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.门票发送端口).BeginInit();
			this.托盘右键菜单.SuspendLayout();
			base.SuspendLayout();
			this.主选项卡.Controls.Add(this.日志选项卡);
			this.主选项卡.ItemSize = new System.Drawing.Size(535, 22);
			this.主选项卡.Location = new System.Drawing.Point(0, 30);
			this.主选项卡.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.主选项卡.Name = "主选项卡";
			this.主选项卡.SelectedIndex = 0;
			this.主选项卡.Size = new System.Drawing.Size(540, 401);
			this.主选项卡.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
			this.主选项卡.TabIndex = 0;
			this.日志选项卡.BackColor = System.Drawing.Color.FromArgb(224, 224, 224);
			this.日志选项卡.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.日志选项卡.Controls.Add(this.日志文本框);
			this.日志选项卡.Location = new System.Drawing.Point(4, 26);
			this.日志选项卡.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.日志选项卡.Name = "日志选项卡";
			this.日志选项卡.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.日志选项卡.Size = new System.Drawing.Size(532, 371);
			this.日志选项卡.TabIndex = 0;
			this.日志选项卡.Text = "日志";
			this.日志文本框.BackColor = System.Drawing.Color.Gainsboro;
			this.日志文本框.Location = new System.Drawing.Point(0, 0);
			this.日志文本框.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.日志文本框.Name = "日志文本框";
			this.日志文本框.ReadOnly = true;
			this.日志文本框.Size = new System.Drawing.Size(530, 366);
			this.日志文本框.TabIndex = 0;
			this.日志文本框.Text = "";
			this.启动服务按钮.BackColor = System.Drawing.Color.YellowGreen;
			this.启动服务按钮.Font = new System.Drawing.Font("微软雅黑", 14.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
			this.启动服务按钮.Location = new System.Drawing.Point(542, 286);
			this.启动服务按钮.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.启动服务按钮.Name = "启动服务按钮";
			this.启动服务按钮.Size = new System.Drawing.Size(130, 73);
			this.启动服务按钮.TabIndex = 1;
			this.启动服务按钮.Text = "启动服务";
			this.启动服务按钮.UseVisualStyleBackColor = false;
			this.启动服务按钮.Click += new System.EventHandler(启动服务_Click);
			this.停止服务按钮.BackColor = System.Drawing.Color.Crimson;
			this.停止服务按钮.Font = new System.Drawing.Font("微软雅黑", 14.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
			this.停止服务按钮.Location = new System.Drawing.Point(541, 358);
			this.停止服务按钮.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.停止服务按钮.Name = "停止服务按钮";
			this.停止服务按钮.Size = new System.Drawing.Size(130, 73);
			this.停止服务按钮.TabIndex = 2;
			this.停止服务按钮.Text = "停止服务";
			this.停止服务按钮.UseVisualStyleBackColor = false;
			this.停止服务按钮.Click += new System.EventHandler(停止服务_Click);
			this.已注册账号.AutoSize = true;
			this.已注册账号.Location = new System.Drawing.Point(546, 40);
			this.已注册账号.Name = "已注册账号";
			this.已注册账号.Size = new System.Drawing.Size(83, 12);
			this.已注册账号.TabIndex = 3;
			this.已注册账号.Text = "已注册账号: 0";
			this.新注册账号.AutoSize = true;
			this.新注册账号.Location = new System.Drawing.Point(546, 63);
			this.新注册账号.Name = "新注册账号";
			this.新注册账号.Size = new System.Drawing.Size(83, 12);
			this.新注册账号.TabIndex = 4;
			this.新注册账号.Text = "新注册账号: 0";
			this.生成门票数.AutoSize = true;
			this.生成门票数.Location = new System.Drawing.Point(546, 86);
			this.生成门票数.Name = "生成门票数";
			this.生成门票数.Size = new System.Drawing.Size(83, 12);
			this.生成门票数.TabIndex = 5;
			this.生成门票数.Text = "生成门票数: 0";
			this.已发送字节.AutoSize = true;
			this.已发送字节.Location = new System.Drawing.Point(546, 109);
			this.已发送字节.Name = "已发送字节";
			this.已发送字节.Size = new System.Drawing.Size(83, 12);
			this.已发送字节.TabIndex = 6;
			this.已发送字节.Text = "已发送字节: 0";
			this.已接收字节.AutoSize = true;
			this.已接收字节.Location = new System.Drawing.Point(546, 132);
			this.已接收字节.Name = "已接收字节";
			this.已接收字节.Size = new System.Drawing.Size(83, 12);
			this.已接收字节.TabIndex = 7;
			this.已接收字节.Text = "已接收字节: 0";
			this.本地监听端口.Location = new System.Drawing.Point(90, 4);
			this.本地监听端口.Maximum = new decimal(new int[4] { 65535, 0, 0, 0 });
			this.本地监听端口.Minimum = new decimal(new int[4] { 100, 0, 0, 0 });
			this.本地监听端口.Name = "本地监听端口";
			this.本地监听端口.Size = new System.Drawing.Size(87, 21);
			this.本地监听端口.TabIndex = 8;
			this.本地监听端口.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.本地监听端口.Value = new decimal(new int[4] { 8001, 0, 0, 0 });
			this.本地监听端口标签.AutoSize = true;
			this.本地监听端口标签.Location = new System.Drawing.Point(7, 9);
			this.本地监听端口标签.Name = "本地监听端口标签";
			this.本地监听端口标签.Size = new System.Drawing.Size(77, 12);
			this.本地监听端口标签.TabIndex = 9;
			this.本地监听端口标签.Text = "本地监听端口";
			this.门票发送端口标签.AutoSize = true;
			this.门票发送端口标签.Location = new System.Drawing.Point(197, 9);
			this.门票发送端口标签.Name = "门票发送端口标签";
			this.门票发送端口标签.Size = new System.Drawing.Size(77, 12);
			this.门票发送端口标签.TabIndex = 11;
			this.门票发送端口标签.Text = "门票发送端口";
			this.门票发送端口.Location = new System.Drawing.Point(280, 4);
			this.门票发送端口.Maximum = new decimal(new int[4] { 65535, 0, 0, 0 });
			this.门票发送端口.Minimum = new decimal(new int[4] { 100, 0, 0, 0 });
			this.门票发送端口.Name = "门票发送端口";
			this.门票发送端口.Size = new System.Drawing.Size(87, 21);
			this.门票发送端口.TabIndex = 10;
			this.门票发送端口.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.门票发送端口.Value = new decimal(new int[4] { 6678, 0, 0, 0 });
			this.最小化到托盘.ContextMenuStrip = this.托盘右键菜单;
			this.最小化到托盘.Icon = (System.Drawing.Icon)resources.GetObject("最小化到托盘.Icon");
			this.最小化到托盘.Text = "账号服务器";
			this.最小化到托盘.MouseClick += new System.Windows.Forms.MouseEventHandler(恢复窗口_Click);
			this.托盘右键菜单.Items.AddRange(new System.Windows.Forms.ToolStripItem[2] { this.打开ToolStripMenuItem, this.退出ToolStripMenuItem });
			this.托盘右键菜单.Name = "托盘右键菜单";
			this.托盘右键菜单.Size = new System.Drawing.Size(101, 48);
			this.打开ToolStripMenuItem.Name = "打开ToolStripMenuItem";
			this.打开ToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
			this.打开ToolStripMenuItem.Text = "打开";
			this.打开ToolStripMenuItem.Click += new System.EventHandler(恢复窗口_Click);
			this.退出ToolStripMenuItem.Name = "退出ToolStripMenuItem";
			this.退出ToolStripMenuItem.Size = new System.Drawing.Size(100, 22);
			this.退出ToolStripMenuItem.Text = "退出";
			this.退出ToolStripMenuItem.Click += new System.EventHandler(结束进程_Click);
			this.打开配置按钮.BackColor = System.Drawing.Color.FromArgb(192, 255, 192);
			this.打开配置按钮.Font = new System.Drawing.Font("微软雅黑", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
			this.打开配置按钮.Location = new System.Drawing.Point(541, 158);
			this.打开配置按钮.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.打开配置按钮.Name = "打开配置按钮";
			this.打开配置按钮.Size = new System.Drawing.Size(130, 30);
			this.打开配置按钮.TabIndex = 12;
			this.打开配置按钮.Text = "打开服务器配置";
			this.打开配置按钮.UseVisualStyleBackColor = false;
			this.打开配置按钮.Click += new System.EventHandler(打开配置按钮_Click);
			this.查看账号按钮.BackColor = System.Drawing.Color.FromArgb(192, 255, 192);
			this.查看账号按钮.Font = new System.Drawing.Font("微软雅黑", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
			this.查看账号按钮.Location = new System.Drawing.Point(541, 222);
			this.查看账号按钮.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.查看账号按钮.Name = "查看账号按钮";
			this.查看账号按钮.Size = new System.Drawing.Size(130, 30);
			this.查看账号按钮.TabIndex = 13;
			this.查看账号按钮.Text = "打开账号文件夹";
			this.查看账号按钮.UseVisualStyleBackColor = false;
			this.查看账号按钮.Click += new System.EventHandler(查看账号按钮_Click);
			this.加载配置按钮.BackColor = System.Drawing.Color.FromArgb(192, 255, 192);
			this.加载配置按钮.Font = new System.Drawing.Font("微软雅黑", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
			this.加载配置按钮.Location = new System.Drawing.Point(541, 190);
			this.加载配置按钮.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.加载配置按钮.Name = "加载配置按钮";
			this.加载配置按钮.Size = new System.Drawing.Size(130, 30);
			this.加载配置按钮.TabIndex = 14;
			this.加载配置按钮.Text = "加载服务器配置";
			this.加载配置按钮.UseVisualStyleBackColor = false;
			this.加载配置按钮.Click += new System.EventHandler(加载配置按钮_Click);
			this.加载账号按钮.BackColor = System.Drawing.Color.FromArgb(192, 255, 192);
			this.加载账号按钮.Font = new System.Drawing.Font("微软雅黑", 10.5f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 134);
			this.加载账号按钮.Location = new System.Drawing.Point(542, 254);
			this.加载账号按钮.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			this.加载账号按钮.Name = "加载账号按钮";
			this.加载账号按钮.Size = new System.Drawing.Size(130, 30);
			this.加载账号按钮.TabIndex = 15;
			this.加载账号按钮.Text = "加载账号文件夹";
			this.加载账号按钮.UseVisualStyleBackColor = false;
			this.加载账号按钮.Click += new System.EventHandler(加载账号按钮_Click);
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(683, 435);
			base.Controls.Add(this.加载账号按钮);
			base.Controls.Add(this.加载配置按钮);
			base.Controls.Add(this.查看账号按钮);
			base.Controls.Add(this.打开配置按钮);
			base.Controls.Add(this.门票发送端口标签);
			base.Controls.Add(this.门票发送端口);
			base.Controls.Add(this.本地监听端口标签);
			base.Controls.Add(this.本地监听端口);
			base.Controls.Add(this.已接收字节);
			base.Controls.Add(this.已发送字节);
			base.Controls.Add(this.生成门票数);
			base.Controls.Add(this.新注册账号);
			base.Controls.Add(this.已注册账号);
			base.Controls.Add(this.停止服务按钮);
			base.Controls.Add(this.启动服务按钮);
			base.Controls.Add(this.主选项卡);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
			base.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
			base.MaximizeBox = false;
			base.Name = "主窗口";
			base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "登录服务器";
			base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(隐藏窗口_Click);
			this.主选项卡.ResumeLayout(false);
			this.日志选项卡.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.本地监听端口).EndInit();
			((System.ComponentModel.ISupportInitialize)this.门票发送端口).EndInit();
			this.托盘右键菜单.ResumeLayout(false);
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
